﻿@model sgp.Models.Dizimo

@{
    ViewBag.Title = "Edit";
}


<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<script>
    jQuery(function ($) {
        $(".cep").mask("99.999-999");
        $(".cnpj").mask("99.999.999/9999-99");
        $(".telefone").mask("(99) 9999-9999");


    });
</script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Editar Dizimo</legend>

        <table border="0" width="35%" cellpadding="5">
        <tr>
            <td>
                <div>
                    Mês Referente
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.MesReferente, new { @class = "textmed"})
                    @Html.ValidationMessageFor(model => model.MesReferente)
                </div>
            </td>
            <td>
                <div>
                    Data
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Data, new { @class = "datepicker" })
                    @Html.ValidationMessageFor(model => model.Data)
                </div>
            </td>
            <td>
                <div>
                    Valor
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Valor, new { @class = "textpeq" })
                    @Html.ValidationMessageFor(model => model.Valor)
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div>
                    Descrição
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Descricao)
                    @Html.ValidationMessageFor(model => model.Descricao)
                </div>
            </td>
        </tr>
        </table>
        <table border="0" width="10%" cellpadding="3">
            <tr>
                <th>
                    <input class="btn btn-success btn-small" type="submit" value="Salvar" />
                </th>
            <th>
                    <a class="btn btn-inverse btn-small" href="/Dizimo/Index" data-original-title="">Voltar</a>
                </th>
            </tr>
        </table>
    </fieldset>
}
